//
//  ShareMethods.h
//  jhjy
//
//  Created by 罗西 on 12/15/15.
//  Copyright © 2015 King. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef enum
{
    LoginSuccessful = 0, // default
    LoginUserCancel,
    LoginFailure,
    LoginNotNetwork,
    LoginUserRefuse,
} LoginState;

typedef enum
{
    WEIXIN = 0, // default
    WEIBO,
    QQ,
} ThirdPartyType;

@protocol LoginDelegate <NSObject>

@optional

-(void)ThirdPartyLoginDelegate:(ThirdPartyType)Type LoginState:(LoginState)loginState PInfo:(NSDictionary *)pInfo OpenID:(NSString *)openID;

-(void)WXpayBack:(BOOL)state;

-(void)UPPayBack:(BOOL)state;

@end

@interface ShareMethods : NSObject

- (void)shareNews;
- (void)shareLinkToWX;
- (void)shareLinkToWeibo;
+ (instancetype)shareInstance;
- (void)loginByQQ;
- (void)loginByWx:(UIViewController *)viewController;
- (void)shareLinkToWXTimeLine;
+ (BOOL)handleOpenURL:(NSURL *)url;
- (void)shareQzone ;
-(void)loadShareMenu;
-(void)loginByWeiBo;
- (void)sendPay;
- (void)sendPay_demo:(NSString *)orderno pay:(NSString *)payMoney body:(NSString *)body;
- (void)sendPay_demo2:(NSString *)orderno pay:(NSString *)payMoney body:(NSString *)body;

#define TITLE @"邀请你加入夜猫"
#define DESCRIPTION @"越夜越刺激"
#define IMAGE_URL @"http://baidu.com"
#define APP_URL @"http://baidu.com"

@property (nonatomic, assign) id<LoginDelegate> delegate;

@end



